import request from '/@/utils/request';

/**
 * 常量操作接口
 */
export function useConstApi() {
	return {
		getConstList: (params?: object) => {
			return request<any, AjaxResult>({
				url: '/const/List',
				method: 'get',
				params,
			});
		},
		constPageList: (data={}) => {
			return request<any, AjaxResult>({
				url: '/const/PageList',
				method: 'post',
				data,
			});
		},
	};
}
